MsgN("\n----------------------------------------")
MsgN("-- MadDog's Flood Loading")

CreateConVar( "maddogs_flood", "0", FCVAR_NOTIFY )

--holds the entire Base for other addons
MDF = {}

MDF.IsEnabled = function()
	--MD is required
	if !MD || !MD.IsEnabled() then return false end

	return (tonumber(GetConVarNumber("maddogs_flood")) == 1)
end

--load all server & client files
include("autorun/maddogs_flood/mdf_shared.lua")

if (SERVER) then
	--add all files required by client
 	AddCSLuaFile("autorun/maddogs_flood.lua")
	AddCSLuaFile("autorun/maddogs_flood/mdf_shared.lua")

	--load all server files
	include("autorun/maddogs_flood/mdf_server.lua")
end

--load all client files
IncludeClientFile( "autorun/maddogs_flood/mdf_client.lua" )

MsgN("----------------------------------------\n")